<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/27
  Time: 14:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
d1
    <%
        //添加（k--v）格式
        request.setAttribute("A","nihao");
        request.setAttribute("B",33);
        //删除
        request.removeAttribute("A");
        //取出
        Object value1 = request.getAttribute("A");
        Object value2 = request.getAttribute("B");
        out.print(value1);
        out.print(value2);
        //转发-- 一次请求一次响应
        request.getRequestDispatcher("d2.jsp").forward(request,response);
    %>
</body>
</html>
